﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.Base.Entity
{
    /// <summary>
    /// fas_masksetting 实体类
    /// </summary>
    public class MaskSetting
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 控码编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 控码名称
        /// </summary>
        public string RuleName { get; set; }

        /// <summary>
        /// 是否系统规则
        /// </summary>
        public bool IsSystem { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsDisabled { get; set; }

        /// <summary>
        /// 是否区域相关
        /// </summary>
        public bool IsRegionRelated { get; set; }

        /// <summary>
        /// 控码正则
        /// </summary>
        public string RegPattern { get; set; }

        /// <summary>
        /// 控码替换值
        /// </summary>
        public string Replacement { get; set; }

        /// <summary>
        /// 子系统id
        /// </summary>
        public string SubSystemID { get; set; }

        /// <summary>
        /// 子系统编号
        /// </summary>
        public string SubSystemCode { get; set; }

        /// <summary>
        /// 模块id
        /// </summary>
        public string ModuleID { get; set; }

        /// <summary>
        /// 模块编号
        /// </summary>
        public string ModuleCode { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreatorName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LastModifier { get; set; }

        /// <summary>
        /// 最后修改人姓名
        /// </summary>
        public string LastModifierName { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastModifyTime { get; set; }

        public List<MaskSettingDetail> Details { get; set; }
    }

    public enum MaskType
    {
        System = 0,
        Custom = 1,
    }
}
